<template>
	<view class="cart">
		<view class="t1">
			<view>清空购物车</view>
			<view>清除售罄商品</view>
		</view>
		<view class="t2">
			<view class="t6">
				<view class="t7" v-for="(item,idx) in list" :key="idx">
					<view>
						<image class="img1" src="https://cdn.uviewui.com/uview/swiper/swiper1.png"></image>
						<view>售罄</view>
						<!-- <view>已下架</view> -->
					</view>
					<view class="t8">
						<view>QQ奶茶</view>
						<view>大杯 热 半糖</view>
						<view>
							<image :src="imgUrl+'9.png'" mode="widthFix"></image>
							¥228
							<text>¥ 260</text>
						</view>
						<view class="t11">
							<image @click="num<=1?'':item.num--" :src="imgUrl+'16.png'" mode="widthFix"></image>
							<text>{{item.num}}</text>
							<image  @click="item.num++"  :src="imgUrl+'17.png'" mode="widthFix"></image>
							
						</view>
					</view>
				</view>






			</view>


		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgUrl:this.imgUrl,
				list: [{
						name: '6英寸',
						id: 1,
						num: 1,
					},
					{
						name: '16英寸',
						id: 2,
						num: 1,
					},
					{
						name: '166英寸6英寸6英寸6英寸',
						id: 3,
						num: 1,
					},
					{
						name: '166英寸6英寸',
						id: 4,
						num: 1,
					}
				]
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.cart {
		width: 100%;
		height: 740upx;
		background: #FFFFFF;
		padding: 24upx 28upx;
		border-radius: 20upx;
		padding: 30upx 20upx;

		.t1 {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 28upx;
			font-weight: 400;
			border-bottom: 1px solid #F8F8F8;
			color: #BFB49B;
			padding-bottom: 16upx;
			margin-bottom: 20upx;
		}

		.t2 {
			.t6 {
				height:520upx ;
				overflow-y: scroll;
				.t7 {
					display: flex;
					margin-top: 26upx;
					width: 100%;
					>view:nth-child(1){
						position: relative;
						width: 120upx;
						height: 120upx;
						border-radius: 10upx;
						margin-right: 14upx;
						view{
							width:120upx;
							text-align: center;
							position: absolute;
							bottom: 0;
							left: 0;
							border-bottom-left-radius: 10upx;
							border-bottom-right-radius: 10upx;
							height: 36upx;
							line-height: 36upx;
							background: rgba(68,68,68,0.5);
							font-size: 20upx;
							font-weight: 400;
							color: #F8F7F7;
						}
					} 

					.img1 {
						width: 120upx;
						height: 120upx;
						border-radius: 10upx;
					}

					.t8 {
						position: relative;
						width: 100%;
						.t11{
							display: flex;
							align-items: center;
							image{
								width: 40upx !important;
								height: 40upx !important;
							}
							text{
								font-size: 28upx;
								font-weight: 400;
								margin: 0 30upx;
								color: #222222 !important;
							}
						}

						>view:nth-child(1) {
							font-size: 28upx;
							font-weight: 400;
							color: #222222;
						}

						>view:nth-child(2) {
							font-size: 24upx;
							font-weight: 400;
							margin: 14upx 0;
							color: #888888;
						}

						>view:nth-child(3) {
							font-size: 24upx;
							font-weight: 400;
							color: #222222;

							image {
								width: 56upx;
								height: 27upx;
								margin-right: 10upx;
							}

							text {
								font-size: 20upx;
								font-weight: 400;
								color: #888888;
							}
						}

						>view:nth-child(4) {
							font-size: 20upx;
							font-weight: 400;
							color: #888888;
							right: 0;
							bottom: 50upx;
							position: absolute;
						}
					}
				}
			}
		}


	}
</style>
